<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>聊天室</title>
    <link rel="stylesheet" href="css/chat.css">
</head>
<body>
    <div class="chat-box">
        <div class="chat-content" id="chatList"></div>
        <div class="chat-edit">
            <textarea placeholder="请输入信息" name="" cols="30" rows="10" id="chatCon"></textarea>
            <span id="sendBtn">发送</span>
        </div>
    </div>
</body>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/socket.io/2.3.0/socket.io.js"></script>
<script src="./index.js"></script>
</html>